/* Copyright (C) 2014-2015 Mammoth Inc. */

var m = new M("course");

$(function() {
	$("#mm_btn_share").click(function() {
		$("#mm_share_popout").modal("show");
	});
	$(".mm_class_panel_heading").hover(function() {
		$(this).children(".mm_class_angle").animate({
			opacity: 1
		}, 100);
	}, function() {
		$(this).children(".mm_class_angle").not(".mm_arrow_up").animate({
			opacity: 0
		}, 100);
	});
	$(".mm_class_panel_heading").click(function() {
		if ($(this).children(".mm_class_angle").hasClass("mm_arrow_up")) {
			$(this).children(".mm_class_angle").removeClass("mm_arrow_up");
		} else {
			$(".mm_arrow_up").removeClass("mm_arrow_up").animate({
				opacity: 0
			}, 100);
			$(this).children(".mm_class_angle").addClass("mm_arrow_up");
		}
	});
	$(".mm_class_panel_body>a").hover(function() {
		$(this).find(".mm_class_angle").animate({
			opacity: 1
		}, 100);
	}, function() {
		$(this).find(".mm_class_angle").animate({
			opacity: 0
		}, 100);
	});
});